package com.dayuanit.dy15.atm.compartor;

import com.dayuanit.dy15.atm.entity.Card;
import java.util.Comparator;

/**
 * 银行卡的比较器  推荐
 */
public class CardCompartor implements Comparator<Card> {

    @Override
    public int compare(Card c1, Card c2) {
        return (int)(c2.getId() - c1.getId());
    }
}
